home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr13
/
golisp.zip
/
DS.LSP
< prev
next >
Wrap
Lisp/Scheme
|
1995-01-20
|
422b
|
15 lines
;Gives true and scaled distances
;Bob Zelna
(DEFUN C:DS ()
(princ"\nPick the two points for which you want")
(princ"\nthe true distance and the scaled distance.")
(setq pt1 (getpoint"\nSelect first pt:")
dst (getdist pt1 "\n...second pt:")
dd (* (getvar"DIMLFAC") dst)
)
(princ"\nThe true distance is ")(princ dst)
(princ"\n...and the scaled distance is ")(princ dd)
(prin1)
)